package hb.rj.demand.mapper;

import hb.rj.demand.entity.Students;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


@Mapper
@Repository
public interface StudentsMapper{
    //添加赵六
    int insertStudent(@Param("students") Students students);

    //将王五的grade修改为卓越2班
    int modifyStudent(@Param("students") Students students);

    //查找张三的全部信息
    Students findByName(@Param("name")String name);

    //删除李四的学生信息
    int deleteByName(@Param("name")String name);

}
